<?php
// Si le fichier de qui dÔøΩfinie les constantes n'a pas encore ÔøΩtÔøΩ appelÔøΩ on le charge
if (!defined('CONFIGURATION_FILE_LOADED'))
    include( 'includes/configuration_include.php');

		
include( PATH_VIEWS.'sphere_view.php');
include( PATH_MODELS.'sphere_model.php');



//fonction qui affiche le cube

$str = startSphere();
    echo $str;
endSphere();

?>



<?php
echo '  <script src="http://code.jquery.com/jquery-latest.js"></script>
		<script type="text/javascript" src="' . URL_JS . 'sphere.js"></script>
                <script type="text/javascript" src="' . URL_JS . 'view_control.js"></script>';

?>
<?php
if(isset($_GET['id']))
{?>
  <script type="text/javascript">
      alert(1);
  var page_init = 'playlist'+<?php echo$_GET['id']?>;
    alert(page_init);

  $('a#'+page_init).click();
  </script>
    
    <?php
}
?>